/**
 * WeakHandler.java
 * 版权所有(C) 2014
 * 创建者:cuiran 2014-6-12 下午2:46:47
 */
package com.ghyf.mplay;

import java.lang.ref.WeakReference;

import android.os.Handler;

/**
 *  Handler 抽象类
 * @author cuiran
 * @version 1.0.0
 */
public abstract class WeakHandler<T> extends Handler {
	   private WeakReference<T> mOwner;

	    public WeakHandler(T owner) {
	        mOwner = new WeakReference<T>(owner);
	    }

	    
	    public T getOwner() {
	        return mOwner.get();
	    }
}
